/*
 * @Author: actor
 * @Date: 2023-12-15 14:22:24
 * @email: 395593455@qq.com
 * @LastEditors: actor
 * @LastEditTime: 2023-12-18 15:14:09
 * @FilePath: \i-hos-app\shared\emr\src\utils\common.ts
 * @Description: 公共方法
 */

export const withInstall = (comp: any) => {
  comp.install = (app: any) => {
    // 注册组件
    app.component(comp.name, comp)
  }
  return comp
}
